//
//  SelectEquipmentVC.m
//  massage
//
//  Created by 李志权 on 2016/12/14.
//  Copyright © 2016年 李志权. All rights reserved.
//

#import "SelectEquipmentVC.h"
#import "SelectEquipmentVCCell.h"
#import "MYUITabBarController.h"
@interface SelectEquipmentVC ()<UITableViewDelegate,UITableViewDataSource>
{
    NSMutableArray *arrayData;
}

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet UIButton *scanningBtn;
@end

@implementation SelectEquipmentVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"选择设备";
    self.tableView.separatorStyle =NO;
    [self.scanningBtn setShearRound:6 masksToBounds:YES borderWidth:0 borderColor:nil];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    if (arrayData && arrayData.count) {
        return arrayData.count;
    }
    return 10;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *cellID = @"SelectEquipmentVCCellID";
    SelectEquipmentVCCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        [tableView registerNib:[UINib nibWithNibName:@"SelectEquipmentVCCell" bundle:nil] forCellReuseIdentifier:cellID];
        cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    }
    return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    UIWindow *window = [[UIApplication sharedApplication]keyWindow];
    window.rootViewController = [[MYUITabBarController alloc]init];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
